const Mock = require("mockjs");

Mock.mock("/getUserlist", "get", {
  retcode: 0,
  "data|20": [
    {
      "id|+1": 1,
      code: /^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,
      name: "@cname",
      phone: /1[3-8]\d{9}/,
      avator: "@image('60x40')",
      "status|0-1": 1,
      createTime: "@now('yyyy-MM-dd HH:mm:ss')",
      sortValue: /[1-9]\d{1}/,
      codeValue: /[1-9]\d{1}/
    }
  ],
  message: "ok"
});
